import request from '@/utils/request'

// /system/followUp/list 查询随访计划（与专病一对一）列表
export function listfollowUp(query) {
  return request({
    url: '/system/followUp/list',
    method: 'get',
    params: query
  })
}

// /system/followUp/{followUpId} 获取随访计划（与专病一对一）详细信息
export function getfollowUp(followUpId) {
  return request({
    url: '/system/followUp/' + followUpId,
    method: 'get'
  })
}
///system/followUp/updateStatus/{followUpId}/{status} 修改随访计划状态 启用， 停用
export function getfollowUpStatus(followUpId,status) {
    return request({
      url: '/system/followUp/updateStatus/' + followUpId +'/'+status,
      method: 'get'
    })
  }
// /system/followUp  新增随访计划（与专病一对一）
export function addfollowUp(data) {
  return request({
    url: '/system/followUp',
    method: 'post',
    data: data
  })
}

///system/followUp 修改随访计划（与专病一对一）
export function updatefollowUp(data) {
  return request({
    url: '/system/followUp',
    method: 'put',
    data: data
  })
}

///system/followUp/{followUpIds} 删除随访计划（与专病一对一）
export function delfollowUp(followUpIds) {
  return request({
    url: '/system/followUp/' + followUpIds,
    method: 'delete'
  })
}

///system/detailed/list   查询随访计划明细列表
export function followUpDetailedList(query) {
  return request({
    url: '/system/detailed/list',
    method: 'get',
    params: query
  })
}
///system/detailed/{ids} 删除随访计划明细
export function delfollowUpDetail(ids) {
  return request({
    url: '/system/detailed/' + ids,
    method: 'delete'
  })
}

////system/detailed 修改随访计划明细
export function updatefollowUpdetailed(data) {
  return request({
    url: '/system/detailed',
    method: 'put',
    data: data
  })
}
///system/detailed 新增随访计划明细
export function addfollowUpdetailed(data) {
  return request({
    url: '/system/detailed',
    method: 'post',
    data: data
  })
}